/**
 * api接口统一管理
 */
import http from './http'

export const ztest = p => http.ajax('/api/ztest', p , 'POST' );
// 供应商查询
export const zSupplierList = p => http.ajax('/rest/supplierList', p , 'POST' );
// 药库查询
export const zDrugStorageList = p => http.ajax('/rest/drugStorageList', p , 'POST' );
// 批号查询 - 根据药品名称、批号
export const zBatchNoSearch = p => http.ajax('/rest/batchNoSearch', p , 'POST' );
// 发票复核 - 根据发票号查询
export const zInvoiceByCode = p => http.ajax('/rest/invoiceByCode', p , 'POST' );
// 发票复核 - 复核
export const zInvoiceSave = p => http.ajax('/rest/invoiceSave', p , 'POST' );
// 发票复核 - 全部发票
export const zInvoiceList = p => http.ajax('/rest/invoiceByList', p , 'POST' );
// 验收复核 - 查询
export const zMedcheckByCode = p => http.ajax('/rest/medcheckByCode', p, 'POST');
// 验收复核 - 复核
export const zMedcheckSave = p => http.ajax('/rest/medcheckSave', p, 'POST');
// 验收复核 - 全部验收记录
export const zMedcheckList = p => http.ajax('/rest/medcheckList', p, 'POST');

// 类别码对照 - 查找品种信息
export const zMedcheckAllList = p => http.ajax('/rest/medcheckAllList', p, 'POST');
// 验收结果 - 查询
export const zCheckresList = p => http.ajax('/rest/checkresList', p, 'POST');
// 批号调整 - 查询
export const zBatchresetByCode = p => http.ajax('/rest/batchresetByCode', p, 'POST' );
// 批号调整 - 提交
export const zBatchresetSave = p => http.ajax('/rest/zBatchresetSave', p, 'POST' );
// 质量状态调整 - 查询
export const zQualityresetByCode = p => http.ajax('/rest/qualityresetByCode', p, 'POST' );
// 质量状态调整 - 提交
export const zQualityresetSave = p => http.ajax('/rest/zQualityresetSave', p, 'POST' );
// 监管码调整 - 查询
export const zSupervisoryByCode = p => http.ajax('/rest/zSupervisoryByCode', p, 'POST' );
// 监管码调整 - 提交
export const zSupervisorySave = p => http.ajax('/rest/zSupervisorySave', p, 'POST' );
// 盘点计划 - 查询
export const zInventoryplanList = p => http.ajax('/rest/inventoryplanList', p, 'POST' );
// 盘点计划 - 新增
export const zInventoryplanSave = p => http.ajax('/rest/inventoryplanSave', p, 'POST' );
// 盘点 - 查询
export const zInventoryByCode = p => http.ajax('/rest/inventoryByCode', p, 'POST');
// 盘点 - 提交
export const zInventorySave = p => http.ajax('/rest/inventorySave', p, 'POST');

// 复盘 - 提交
export const zInventoryUpdate = p => http.ajax('/rest/inventoryUpdate', p, 'POST');

// 盘点 - 历史
export const zInventoryList = p => http.ajax('/rest/inventoryList', p, 'POST');

// 药品调配 - 查询
export const zDrugDispByCode = p => http.ajax('/rest/drugDispByCode', p, 'POST');
export const zDrugDispList = p => http.ajax('/rest/drugDispList', p, 'POST');
// 药品调配 - 提交
export const zDrugDispSave = p => http.ajax('/rest/drugDispSave', p, 'POST');
// 登录
export const zLogin = p => http.ajax('/rest/baseLogin', p, 'POST');
// 药品下架 - 查询药品
export const zDrugOutByCode = p => http.ajax('/rest/drugOutByCode', p, 'POST');
// 药品下架 - 提交
export const zDrugOutSave = p => http.ajax('/rest/drugOutSave', p, 'POST');
// 药品下架 - 历史
export const zDrugoutList = p => http.ajax('/rest/drugoutList', p , 'POST' );

// 药品上架 -查询药品
export const zDrugInByCode = p => http.ajax('/rest/drugInByCode', p, 'POST'); 
// 药品上架 - 提交
export const zDrugInSave = p => http.ajax('/rest/drugInSave', p, 'POST');
// 药品上架 - 历史
export const zDruginList = p => http.ajax('/rest/druginList', p , 'POST' );
// 领料出库 - 查询出库单
export const zmaterialOutByCode = p => http.ajax('/rest/materialOutByCode', p, 'POST');
// 领料出库 - 查询药品
export const zmaterialScanByCode = p => http.ajax('/rest/materialScanByCode', p, 'POST');
// 领料出库 - 提交
export const zmaterialOutSave = p => http.ajax('/rest/materialOutSave', p, 'POST');
// 领料出库 - 历史
export const zmaterialoutList = p => http.ajax('/rest/drugoutList', p , 'POST' );
// 领料入库 - 查询入库单
export const zmaterialInByCode = p => http.ajax('/rest/materialInByCode', p, 'POST');
// 领料入库 - 查询药品
export const zmaterialInScanByCode = p => http.ajax('/rest/materialInScanByCode', p, 'POST');
// 领料入库 - 提交
export const zmaterialInSave = p => http.ajax('/rest/materialInSave', p, 'POST');
// 领料入库 - 历史
export const zmaterialinList = p => http.ajax('/rest/druginList', p , 'POST' );
// 架位码
export const zJwList = p => http.ajax('/rest/zJwList', p, 'POST');
// 类别码对照
export const zCategorycodeSave = p => http.ajax('/rest/zCategorycodeSave', p, 'POST');
// 类别码对照列表
export const zCategorycodeList = p => http.ajax('/rest/zCategorycodeList', p, 'POST');
// 类别码根据id查询品种信息
export const zCategorycodeById = p => http.ajax('/rest/zCategorycodeById', p, 'POST');
// 类别码 - 无码
export const zNoma = p => http.ajax('/rest/zNoma', p, 'POST');
// 查询所有调出库房
export const zOutStoreList = p => http.ajax('/rest/drugStorageList', p, 'POST');
// 查询调出库房商品信息zStoreDrugOutList
export const zStoreDrugOutList = p => http.ajax('/rest/zstoredrugoutlist', p, 'POST');
// 确认调出库房
export const zStoreDrugOutSave = p => http.ajax('/rest/zStoreDrugOutSave', p, 'POST');
// 采购流程
export const zProcessList = p => http.ajax('/rest/zProcessList', p, 'POST');
// 未确认报表
export const zUnconfimRepList = p => http.ajax('/rest/zUnconfimRepList', p, 'POST');
// 汇总报表
export const zAllRepList = p => http.ajax('/rest/zAllRepList', p, 'POST');
// 汇总报表
export const zConfimRepList = p => http.ajax('/rest/zConfimRepList', p, 'POST');
// 调出库房 - 查询调入库房货位
export const zStoreDrugLocat = p => http.ajax('/rest/zStoreDrugLocat', p, 'POST');

// 类别码对照 - 未对照品种
export const zNoCategorycodeList = p => http.ajax('/rest/zNoCategorycodeList', p, 'POST');
// 统领单 - 查询请料单
export const zhospMedOutByCode = p => http.ajax('/rest/zhospMedOutByCode', p, 'POST');
// 统领单 - 查询药品
export const zhospMedOutScanByCode = p => http.ajax('/rest/zhospMedOutScanByCode', p, 'POST');
// 统领单 - 提交
export const zhospMedOutOutSave = p => http.ajax('/rest/zhospMedOutOutSave', p, 'POST');
// 统领单 - 历史
export const zhospMedOutHistList = p => http.ajax('/rest/zhospMedOutHistList', p , 'POST' );
// 统领单 - 查看药库药品库存
export const zStroeDrugNums = p => http.ajax('/rest/zStroeDrugNums', p, 'POST');


// 盘点（贵重） - 查询
export const zInventorygzByCode = p => http.ajax('/rest/inventorygzByCode', p, 'POST');
// 盘点（贵重） - 提交
export const zInventorygzSave = p => http.ajax('/rest/inventorygzSave', p, 'POST');

// 复盘（贵重） - 复盘提交
export const zInventorygzUpdate = p => http.ajax('/rest/inventorygzUpdate', p, 'POST');
// 盘点（贵重） - 历史
export const zInventorygzList = p => http.ajax('/rest/inventorygzList', p, 'POST');
